package me.huangxiang.design_pattern.decorator;

public class Whip extends CondimentDecorator {
    private Beverage beverage;
    @Override
    public String getDescription() {
        return beverage.getDescription() + " with Whip";
    }

    @Override
    public float cost() {
        return 0.32f + beverage.cost();
    }

    public Whip(Beverage beverage) {
        this.beverage = beverage;
    }
}
